
package za.ac.cput.peter.ObjectOrientatedConcepts.Encapsulation.Impl;


public class AccountImpl implements Account
{
    private int accountNumber;
    private String lastName;
    private String firstName;

    @Override
    public int getAccountNumber() { return accountNumber; }
    @Override
    public void setAccountNumber(int accountNumber) { this.accountNumber = accountNumber; }

    public String getFirstName() { return firstName; }
    public void setFirstName(String firstName) { this.firstName = firstName; }

    public String getLastName() { return lastName; }
    public void setLastName(String lastName) { this.lastName = lastName; }

    @Override
    public void setAccountHolder(String firstName, String lastName)
    {
        this.firstName = firstName;
        this.lastName = lastName;
    }

    @Override
    public String getAccountHolder() { return( getFirstName()+" "+getLastName()); }
}